package com.appkubes.mall.admin.config.tomcat;

import com.appkubes.mall.admin.KylinAdminApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @Author: Rongjie
 * @Date: 2020/1/29 23:07
 * @Description:
 */
@SpringBootApplication
public class ServletInitializer extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //此处的Application.class为带有@SpringBootApplication注解的启动类
        return builder.sources(KylinAdminApplication.class);
    }
}
